import time

from selenium.webdriver.common.by import By

from project_page.add_member import AddMemberPage
from project_page.base_page import BasePage
from project_page.contact_page import ContactPage
from project_page.wework_page import WeworkPage


class MainPageObject(WeworkPage):
    # 跳转通讯录页面的功能
    def goto_contact_page(self):
        return  ContactPage(self.driver)
        pass
    # 跳转添加成员页面的功能
    def goto_add_member_page(self):
        self.driver.find_element(By.CSS_SELECTOR, ".ww_indexImg_AddMember").click()
        return AddMemberPage(self.driver)